<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>ADA Airlines</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <!-- Importação dos CSS's -->
        <link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
        <link rel="stylesheet" href="css/layout.css" type="text/css" media="all">
        <link rel="stylesheet" href="css/style.css" type="text/css" media="all">

    </head>
    <body>
        <script type="text/javascript" src="js/validacao.js"></script>
        <form action="alteracadastro" method="post" onsubmit="return validaCampos(this);">
            <div class="main">

                <!--header -->
                <header>
                    <div class="wrapper">
                        <h1><a href="index.html" id="logo">Air lines</a></h1>
                        <span id="slogan">Voos Rápidos, Frequentes e Seguros</span>
                    </div>
                    <nav>
                        <ul id="menu">
                            <li><a href="index.html"><span><span>Home</span></span></a></li>
                            <li><a href="passagens.jsp"><span><span>Passagens</span></span></a></li>
                            <li id="menu_active"><a href="incluiCadastro.jsp"><span><span>Cadastre-se</span></span></a></li>
                            <li class="end"><a href="login.jsp"><span><span>Log in</span></span></a></li>
                        </ul>
                    </nav>
                </header>
                <!-- / header -->

                <!--content -->
                <section id="content">
                    <div class="wrapper pad1">
                        <article class="col1">
                            <div class="pad_bot3">  
                                <div>
                                    <table border = 0>
                                        <tr>
                                            <td><label for ="nome">Nome:</label></td>
                                            <td><input type="text" name="nome" id="nome" maxlength="20" value="${Passageiro.nome}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="sobrenome">Sobrenome:</label></td>
                                            <td><input type="text" name="sobrenome" id="sobrenome" maxlength="50" value="${Passageiro.sobrenome}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="sexo">Sexo:</label></td>
                                            <td><input type="text" name="sexo" id="sexo" maxlength="20" value="${Passageiro.sexo}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="rg">RG:</label></td>
                                            <td><input type="text" name="rg" id="rg" maxlength="15" value="${Passageiro.rg}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="cpf">CPF:</label></td>
                                            <td><input type="text" name="cpf" id="cpf" maxlength="15" value="${Passageiro.cpf}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="endereco">Endereço: </label></td>
                                            <td><input type="text" name="endereco" id="endereco" maxlength="70" value="${Passageiro.endereco}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="bairro">Bairro:</label></td>
                                            <td><input type="text" name="bairro" id="bairro" maxlength="20" value="${Passageiro.bairro}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="dt_nasc">Data de Nascimento:</label></td>
                                            <td><input type="text" name="dt_nasc" id="dt_nasc" maxlength="10" value="${Passageiro.dt_nasc}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="cidade">Cidade:</label></td>
                                            <td><input type="text" name="cidade" id="cidade" maxlength="50" value="${Passageiro.cidade}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="estado">Estado:</label></td>
                                            <td><input type="text" name="estado" id="estado" maxlength="2" value="${Passageiro.estado}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="cep">CEP:</label></td>
                                            <td><input type="text" name="cep" id="cep" maxlength="8" value="${Passageiro.cep}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="tel">Telefone:</label></td>
                                            <td><input type="text" name="tel" id="tel" maxlength="11" value="${Passageiro.tel}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="email">E-mail:</label></td>
                                            <td><input type="text" name="email" id="email" maxlength="70" value="${Passageiro.email}"/></td>
                                        </tr>
                                        <tr>
                                            <td><label for ="senha">Senha:</label></td>
                                            <td><input type="password" name="senha" id="senha" maxlength="10"/></td>
                                        </tr>
                                        <tr>
                                            <td> <label for ="senha">Confirmar Senha:</label></td>
                                            <td><input type="password" name="conf_senha" id="conf_senha" maxlength="10"/></td>
                                        </tr>
                                    </table>
                                    <button type="submit" id="alterar">Alterar</button>
                                    <button type="submit" id="voltar" onClick="history.go(-1)">Voltar</button>
                                </div>
                            </div>
                            <!-- /body -->
                        </article>
                    </div>
                </section>
            </div>
        </form>
    </body>
</html>